package com.lanchetech.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 自定义专题数据
 */
@ApiModel(value = "com-lanchetech-entity-CustomPageData")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CustomPageData implements Serializable {
    /**
     * id
     */
    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 自定义专题id
     */
    @ApiModelProperty(value = "自定义专题id")
    private Long customPageId;

    /**
     * 数据类型 0 纯展示 1 跳转链接 2 商品 3 优惠券
     */
    @ApiModelProperty(value = "数据类型 0 纯展示 1 跳转链接 2 商品 3 优惠券")
    private Byte type;

    /**
     * 关联编号id
     */
    @ApiModelProperty(value = "关联编号id")
    private Long relateId;

    /**
     * 参数JSON
     */
    @ApiModelProperty(value = "参数JSON")
    private String feature;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Date createdAt;

    private static final long serialVersionUID = 1L;

    public static CustomPageDataBuilder builder() {
        return new CustomPageDataBuilder();
    }
}